package com.itheima.service;

import com.itheima.common.PageBean;
import com.itheima.pojo.Student;

/**
 * The interface Student service.
 */
public interface StudentService {
    /**
     * 分页查询学员列表
     *
     * @param page          the page
     * @param pageSize      the page size
     * @param name          the name
     * @param highestDegree the highest degree
     * @param classesId     the classes id
     * @param studentNumber the student number
     * @return the page bean
     */
    PageBean<Student> selectStudentByPage(Integer page, Integer pageSize, String name, Integer highestDegree, Integer classesId, String studentNumber);

    /**
     * 新增学员
     *
     * @param student the student
     */
    void addStudent(Student student);

    /**
     * 根据id删除学员
     *
     * @param id the id
     */
    void deleteStudentById(Integer id);

    /**
     * 根据id查询信息
     *
     * @param id the id
     * @return the student
     */
    Student selectStudentById(Integer id);

    /**
     * 根据id更新学员信息
     *
     * @param student the student
     */
    void updateStudentById(Student student);

    /**
     * 违纪扣分
     *
     * @param student the student
     */
    void updateStudentForDeductions(Student student);
}
